/**
 * @author weileiming
 * @description 小程序配置文件
 */

export default defineAppConfig({
  pages: [
    'pages/index/index',
    'pages/dish/index',
    'pages/recommend/index',
    'pages/shoppingCart/index',
    'pages/profile/index'
  ],
  // 将对客户的聊天进行分包处理 避免后续过于臃肿
  subPackages:[
    {
      root: 'packageContacts',
      pages:[
        'pages/dish/index',
        'pages/login/index',
        'pages/goodsDetails/index',
      ]
    }
  ],
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTextStyle: 'black'
  },
  tabBar: {
    color: '#999',
    selectedColor: '#333',
    backgroundColor: '#fff',
    borderStyle: 'black',
    list: [
      {
        pagePath: 'pages/index/index',
        text: '首页',
        iconPath: 'assets/tabbar/index.png',
        selectedIconPath: 'assets/tabbar/index-active.png'
      },
      {
        pagePath: 'pages/dish/index',
        text: '全部菜品',
        iconPath: 'assets/tabbar/dish.png',
        selectedIconPath: 'assets/tabbar/dish-active.png'
      },
      {
        pagePath: 'pages/recommend/index',
        text: '常用推荐',
        iconPath: 'assets/tabbar/recommend.png',
        selectedIconPath: 'assets/tabbar/recommend-active.png'
      },
      {
        pagePath: 'pages/shoppingCart/index',
        text: '购物车',
        iconPath: 'assets/tabbar/shoppingCart.png',
        selectedIconPath: 'assets/tabbar/shoppingCart-active.png'
      },
      {
        pagePath: 'pages/profile/index',
        text: '我的',
        iconPath: 'assets/tabbar/profile.png',
        selectedIconPath: 'assets/tabbar/profile-active.png'
      }
    ]
  }
})